/**
 * 自定义主题样式
 */

/* ==========  鸿蒙字体定义 ========== */

/**
 * 鸿蒙字体本地加载方案 ✅
 * 字体CSS文件由 font-loader.ts 动态加载
 * 
 * 🎯 加载策略（优化版）：
 * 1. 立即加载：使用 requestAnimationFrame 在浏览器空闲时立即加载
 * 2. 不阻塞渲染：确保首屏快速显示
 * 3. 智能预加载：页面空闲时检测主要内容区域，按需加载其他字重
 * 4. Network 可见：字体请求会立即出现在 F12 → Network → Font 选项卡
 * 
 * 🌐 CDN 地址：
 * - 提供商：中文网字计划 (https://chinese-font.netlify.app/)
 * - Regular (400): https://chinese-font.netlify.app/.netlify/functions/css?font=HarmonyOS%20Sans%20SC&subset=CN&weight=400
 * - Light (300): https://chinese-font.netlify.app/.netlify/functions/css?font=HarmonyOS%20Sans%20SC&subset=CN&weight=300
 * - Medium (500): https://chinese-font.netlify.app/.netlify/functions/css?font=HarmonyOS%20Sans%20SC&subset=CN&weight=500
 * - Bold (700): https://chinese-font.netlify.app/.netlify/functions/css?font=HarmonyOS%20Sans%20SC&subset=CN&weight=700
 * 
 * ✨ CDN 方案优势：
 * - 不占用项目空间（节省 ~80MB）
 * - 全球 CDN 加速
 * - 智能按需加载字符
 * - 自动字体分包
 * 
 * 🔄 切换回本地方案：
 * 在 index.js 中将 import './font-loader-cdn' 改为 import './font-loader'
 */

/* 字体加载过渡效果 - 避免字体闪烁 */
html {
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  /* 更柔和的绿色配色方案 - 提升可读性 */
  --vp-c-brand-1: #10b981;
  --vp-c-brand-2: #059669;
  --vp-c-brand-3: #047857;
  --vp-c-brand-soft: rgba(16, 185, 129, 0.12);
  --vp-c-brand-dimm: rgba(16, 185, 129, 0.08);

  /* 鸿蒙字体全局配置 */
  --vp-font-family-base: 'HarmonyOS Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  --vp-font-family-mono: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;

  /* 添加过渡效果到所有元素 */
  scroll-behavior: smooth;
}

/* 全局字体应用 */
body {
  font-family: var(--vp-font-family-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 暗色模式特定颜色变量 */
.dark {
  --vp-c-brand-1: #34d399;
  --vp-c-brand-2: #10b981;
  --vp-c-brand-3: #059669;
  --vp-c-brand-soft: rgba(52, 211, 153, 0.15);
  --vp-c-brand-dimm: rgba(52, 211, 153, 0.1);
}

/* ==========  全局布局优化 ========== */

/* 首页布局 - 保持原有样式不受限制 */
.VPHome .VPContent,
.VPHome .VPContent .container {
  max-width: 100vw;
  margin: 0 auto;
  width: 100%;
}

/* 文档页面布局 - 居中显示（排除文章列表页面） */
.VPDoc:not(:has(.article-list-page)) .VPContent {
  max-width: 100vw;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  position: relative;
  z-index: 1;
}

.VPDoc:not(:has(.article-list-page)) .VPContent .container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* 文章列表页面 - 全屏布局 */
.VPDoc:has(.article-list-page) .VPContent {
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.VPDoc:has(.article-list-page) .VPContent .container {
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

/* 确保导航栏始终在最上层 */
.VPNav,
.VPNavBar,
.VPNavScreen {
  z-index: 1000 !important;
}

/* 修复 aside-curtain 重影问题 - 只优化渲染性能 */
.aside-curtain {
  will-change: opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* 防止多个 curtain 叠加造成重影 */
.aside-curtain + .aside-curtain {
  display: none !important;
}

/* 在文章列表页面隐藏 aside-curtain */
.VPDoc:has(.article-list-page) .aside-curtain {
  display: none !important;
}

/* 在 pandacoder-weekly 页面隐藏 aside-curtain 遮罩 */
.VPDoc:has(.pandacoder-container) .aside-curtain,
.pandacoder-container ~ .aside-curtain,
body:has(.pandacoder-container) .aside-curtain,
.aside-curtain[data-v-3a82ddb3] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  z-index: -9999 !important;
}

/* 优化文档页面布局 - 让内容区域和目录都有更多空间 */
.VPDoc.has-aside {
  max-width: 100%;
  margin: 0 auto;
}

/* ==========  文档页面样式 ========== */

/* 文档页面主容器 */
.VPDoc:not(:has(.article-list-page)) .container {
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 0 2rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: visible !important;
}

/* 文档内容区域 */
.VPDoc:not(:has(.article-list-page)) .vp-doc {
  max-width: 1400px !important;
  width: 100% !important;
  padding: 48px 2rem 96px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  flex: 1 1 auto !important;
}

/* 调整整体文档布局，让内容和侧边栏更好地分配空间 */
.VPDoc.has-aside .content-container {
  max-width: 100%;
  width: 100%;
}

/* 确保文档容器充分利用空间（排除文章列表页面） */
.VPDoc:not(:has(.article-list-page)) .container {
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 0.25rem !important;
  width: 100% !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  overflow-x: visible !important;
}

/* 优化右侧目录样式 */
.VPDocAsideOutline {
  padding-left: 0px !important;
  padding-right: 0px !important;
  max-width: none !important;
  width: 100% !important;
  min-width: 100% !important;
  min-height: auto;
  overflow: visible !important;
  box-sizing: border-box !important;
}

/* 确保目录内部容器不限制宽度 */
.VPDocAsideOutline .outline-marker,
.VPDocAsideOutline .content,
.VPDocAsideOutline .root,
.VPDocAsideOutline ul,
.VPDocAsideOutline li {
  max-width: none !important;
  width: 100% !important;
  min-width: 100% !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

/* 确保目录链接文字不被截断 */
.VPDocAsideOutline a {
  max-width: none !important;
  width: auto !important;
  min-width: auto !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

/* 强制移除VitePress可能的宽度限制 */
.VPDocAside *,
.VPDocAsideOutline * {
  max-width: none !important;
}

.VPDocAside .outline-link,
.VPDocAsideOutline .outline-link {
  max-width: none !important;
  width: 100% !important;
}

/* 超强制样式 - 确保目录链接完全显示 */
.VPDocAside *[class*="outline"] {
  max-width: none !important;
  overflow: visible !important;
}

/* 针对所有可能的outline相关元素 */
div[class*="outline"],
nav[class*="outline"],
ul[class*="outline"],
li[class*="outline"],
a[class*="outline"] {
  max-width: none !important;
  overflow: visible !important;
}

/* 确保侧边栏所有子元素不限制宽度 */
aside.VPDocAside * {
  max-width: none !important;
}

/* 右侧目录容器样式优化 - 合理的宽度设置 */
.VPDocAside {
  padding-left: 16px;
  padding-right: 16px;
  width: 280px;
  min-width: 280px;
  max-width: 280px;
  flex-shrink: 0;
}

/* 目录标题样式 */
.VPDocAsideOutline .outline-title {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--vp-c-text-1);
  padding: 8px 0 16px;
}

/* 目录链接样式 - 修复绿条重叠问题 */
.VPDocAsideOutline .outline-link {
  font-size: 14px !important;
  line-height: 2 !important;
  color: var(--vp-c-text-2);
  font-weight: 500;
  padding: 6px 0px 6px 6px !important;
  transition: all 0.2s ease;
  border-left: 2px solid transparent !important;
  position: relative;
  /* 单行显示完整文字 */
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box;
  min-height: 36px;
  flex-shrink: 0 !important;
}

/* 强制目录链接内的文字不换行不截断 */
.VPDocAsideOutline .outline-link,
.VPDocAsideOutline .outline-link *,
.VPDocAsideOutline a,
.VPDocAsideOutline a * {
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-width: none !important;
}

.VPDocAsideOutline .outline-link:hover {
  color: var(--vp-c-brand-1);
  background-color: var(--vp-c-brand-soft);
  border-left-color: var(--vp-c-brand-1) !important;
}

.VPDocAsideOutline .outline-link.active {
  color: var(--vp-c-brand-1);
  font-weight: 600;
  border-left-color: var(--vp-c-brand-1) !important;
  background-color: var(--vp-c-brand-dimm);
}

/* 覆盖VitePress默认的outline样式，防止边框重叠 */
.VPDocAsideOutline .outline-link::before,
.VPDocAsideOutline .outline-link::after {
  display: none !important;
}

/* 确保outline-link及其子元素不会产生额外的边框 */
.VPDocAsideOutline .outline-link * {
  border-left: none !important;
}

/* 重置outline-marker的样式 */
.VPDocAsideOutline .outline-marker {
  display: none !important;
}

/* 目录层级缩进 */
.VPDocAsideOutline .outline-link.nested {
  padding-left: 24px !important;
  padding-right: 0px !important;
  font-size: 13px !important;
  line-height: 2 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  width: 100% !important;
  max-width: none !important;
}

/* 目录区域背景和边框 */
.VPDocAside.has-outline {
  border-left: 1px solid var(--vp-c-divider-light);
  background-color: var(--vp-c-bg-soft);
  border-radius: 8px;
  padding: 20px 8px;
  margin-top: 48px;
  position: sticky;
  top: calc(var(--vp-nav-height) + 24px);
  max-height: calc(100vh - var(--vp-nav-height) - 48px);
  overflow-y: auto;
  overflow-x: visible;
  width: 100%;
  box-sizing: border-box !important;
}

/* 移除VitePress可能设置的宽度限制 */
.VPDocAside nav {
  max-width: none !important;
  width: 100% !important;
  overflow: visible !important;
}

.VPDocAside .content {
  max-width: none !important;
  width: 100% !important;
  overflow: visible !important;
}

/* 全局强制 - 移除所有可能的限制 */
.VPDocAside,
.VPDocAside *,
aside[class*="Doc"] *,
div[class*="Aside"] *,
nav[class*="Aside"] * {
  overflow-x: visible !important;
  overflow-y: visible !important;
}

.VPDocAside .has-outline,
.VPDocAside.has-outline,
.VPDocAside.has-outline * {
  overflow-x: visible !important;
}

/* 特别针对可能隐藏内容的元素 */
.VPDocAside div,
.VPDocAside nav,
.VPDocAside ul,
.VPDocAside li,
.VPDocAside a {
  overflow: visible !important;
  max-width: none !important;
}

/* 覆盖VitePress默认的内容宽度限制 */
/* ==========  响应式布局 - 1440px+ ========== */
@media (min-width: 1440px) {
  /* 文档页面 */
  .VPDoc:not(:has(.article-list-page)) .vp-doc {
    max-width: 1600px !important;
    margin: 0 auto !important;
  }
  
  .VPDoc:not(:has(.article-list-page)) .container {
    max-width: 1600px !important;
    margin: 0 auto !important;
  }
  
  .VPDoc.has-aside:not(:has(.article-list-page)) .container {
    max-width: 1800px !important;
    margin: 0 auto !important;
  }
  
  /* 目录宽度 */
  .VPDocAside {
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
  }
}

/* ==========  响应式布局 - 1680px+ ========== */
@media (min-width: 1680px) {
  /* 文档页面 */
  .VPDoc:not(:has(.article-list-page)) .vp-doc {
    max-width: 1700px !important;
    margin: 0 auto !important;
  }
  
  .VPDoc:not(:has(.article-list-page)) .container {
    max-width: 1700px !important;
    margin: 0 auto !important;
  }
  
  .VPDoc.has-aside:not(:has(.article-list-page)) .container {
    max-width: 1900px !important;
    margin: 0 auto !important;
  }
  
  /* 目录宽度 */
  .VPDocAside {
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
  }
}

/* ==========  响应式布局 - 1920px+ ========== */
@media (min-width: 1920px) {
  /* 文档页面 */
  .VPDoc:not(:has(.article-list-page)) .vp-doc {
    max-width: 1800px !important;
    margin: 0 auto !important;
  }
  
  .VPDoc:not(:has(.article-list-page)) .container {
    max-width: 1800px !important;
    margin: 0 auto !important;
  }
  
  .VPDoc.has-aside:not(:has(.article-list-page)) .container {
    max-width: 2000px !important;
    margin: 0 auto !important;
  }
  
  /* 目录宽度 */
  .VPDocAside {
    width: 340px !important;
    min-width: 340px !important;
    max-width: 340px !important;
  }
}

/* ==========  响应式布局 - 2560px+ (2K) ========== */
@media (min-width: 2560px) {
  /* 文档页面 */
  .VPDoc:not(:has(.article-list-page)) .vp-doc {
    max-width: 2000px !important;
    margin: 0 auto !important;
  }
  
  .VPDoc:not(:has(.article-list-page)) .container {
    max-width: 2000px !important;
    margin: 0 auto !important;
  }
  
  .VPDoc.has-aside:not(:has(.article-list-page)) .container {
    max-width: 2200px !important;
    margin: 0 auto !important;
  }
  
  /* 首页元素 */
  .VPFeatures .items {
    max-width: 1500px;
    gap: 3rem;
  }
  
  .recent-posts {
    max-width: 1800px;
  }
  
  /* 目录宽度 */
  .VPDocAside {
    width: 360px;
    min-width: 360px;
    max-width: 360px;
  }
}

/* 超超宽屏幕优化 (3440x1440 和更大) */
@media (min-width: 3440px) {
  .vp-doc {
    max-width: 2800px !important;
    padding: 48px 64px 96px;
  }
  
  .VPContent,
  .VPContent .container {
    max-width: 3000px;
  }
  
  .VPNav .container {
    max-width: 3000px;
    padding: 0 3rem;
  }
  
  .VPFeatures .container {
    max-width: 2000px;
  }
  
  .VPFeatures .items {
    max-width: 1800px;
    gap: 3.5rem;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }
  
  .VPFeatures .item {
    padding: 3rem 2.5rem;
    min-height: 240px;
    height: 240px;
  }
  
  .VPFeatures .icon {
    width: 88px;
    height: 88px;
    margin-bottom: 1.75rem;
  }
  
  .VPFeatures .icon img,
  .VPFeatures .icon svg {
    width: 44px;
    height: 44px;
  }
  
  .VPFeatures .title {
    font-size: 1.5rem;
  }
  
  .VPFeatures .subtitle {
    font-size: 0.95rem;
  }
  
  .VPFeatures .details {
    font-size: 1rem;
    height: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    opacity: 0;
  }
  
  /* 超宽屏悬停效果 */
  .VPFeatures .item:hover .details {
    height: 120px;
    max-height: none;
    padding: 0 1rem;
    font-size: 1.05rem;
    line-height: 1.75;
    letter-spacing: 0.4px;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
  }
  
  .VPHero .name,
  .VPHero .text {
    font-size: 4rem !important;
  }
  
  .VPHero .tagline {
    font-size: 1.6rem !important;
    max-width: 900px;
  }
  
  .recent-posts {
    max-width: 2200px;
  }
  
  .post-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 3rem;
  }
  
  .post-item {
    padding: 2.5rem;
  }
  
  .post-title {
    font-size: 1.5rem;
  }
  
  /* 超宽屏下，目录宽度进一步优化 */
  .VPDocAside {
    width: 400px !important;
    min-width: 400px !important;
    max-width: 400px !important;
  }
}

/* 带侧边栏的文档页面 */
.VPDoc.has-aside:not(:has(.article-list-page)) .container,
.VPDoc.has-sidebar:not(:has(.article-list-page)) .container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
}

/* 让内容区域占据更多空间 */
.VPDoc .content {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* 调整侧边栏区域 - 确保显示 */
aside.VPDocAside {
  position: relative;
  box-sizing: border-box;
}

/* 确保内容区域有足够的空间 */
.VPHome .VPContent {
  padding: 0;
}

/* 优化页面滚动 */
html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100vw;
}

/* 确保所有主要容器不超出视口 */
* {
  box-sizing: border-box;
}

.VPDoc,
.VPHome,
.VPContent,
.VPFeatures,
.recent-posts {
  max-width: 100vw;
}

/* 首页容器 - 不限制宽度 */
.VPHome .container,
.VPHome .VPContent > .container {
  max-width: 100vw !important;
  margin: 0 auto !important;
}

/* 文档页面居中显示 */

/* 隐藏文章列表页面VitePress自动生成的标题 */
.vp-doc:has(.article-list-page) h1:first-of-type {
  display: none;
}

/* ========== 文章列表页面 - 完全铺满屏幕 ========== */

/* 强制所有祖先容器铺满屏幕 */
body:has(.article-list-page),
#app:has(.article-list-page),
.Layout:has(.article-list-page) {
  width: 100% !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

/* 最外层 VPDoc 容器 */
.VPDoc:has(.article-list-page) {
  width: 100% !important;
  max-width: 100vw !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

/* 文档内容容器 vp-doc */
.vp-doc:has(.article-list-page) {
  width: 100% !important;
  max-width: 100vw !important;
  padding: 48px 0 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

/* VPContent 容器 */
.VPDoc:has(.article-list-page) .VPContent {
  width: 100% !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

/* 内部 container */
.VPDoc:has(.article-list-page) .container,
.VPDoc:has(.article-list-page) .VPContent .container {
  width: 100% !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  display: block !important;
  overflow-x: hidden !important;
}

/* 强制移除所有可能的宽度限制 */
.VPDoc:has(.article-list-page),
.VPDoc:has(.article-list-page) *:not(.article-list-page):not(.article-list-page *) {
  max-width: 100vw !important;
}

/* 所有分辨率下都保持铺满全屏 - 确保一致性 */
@media (min-width: 1440px),
       (min-width: 1920px),
       (min-width: 2560px) {
  body:has(.article-list-page),
  #app:has(.article-list-page),
  .Layout:has(.article-list-page),
  .VPDoc:has(.article-list-page),
  .vp-doc:has(.article-list-page),
  .VPDoc:has(.article-list-page) .VPContent,
  .VPDoc:has(.article-list-page) .container,
  .VPDoc:has(.article-list-page) .VPContent .container {
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
  }
  
  .vp-doc:has(.article-list-page) {
    padding: 48px 0 0 !important;
  }
}

/* 文章列表页面底部元素 - 完全隐藏 */
.vp-doc:has(.article-list-page) .VPDocFooter,
.vp-doc:has(.article-list-page) footer,
.article-list-page ~ .VPDocFooter,
div:has(.article-list-page) + .VPDocFooter {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* 导航栏区域保持visible以显示下拉菜单 */
.VPNav {
  max-width: 100vw;
}

/* 全局微妙动画 */
@keyframes fadeInStagger {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.VPFeatures .item {
  animation: fadeInStagger 0.6s ease-out both;
  animation-delay: calc(var(--stagger-delay, 0s) + var(--stagger-index, 0) * 0.1s);
  --stagger-delay: 0.1s;
}

.VPFeatures .item:nth-child(1) { --stagger-index: 1; }
.VPFeatures .item:nth-child(2) { --stagger-index: 2; }
.VPFeatures .item:nth-child(3) { --stagger-index: 3; }
.VPFeatures .item:nth-child(4) { --stagger-index: 4; }
.VPFeatures .item:nth-child(5) { --stagger-index: 5; }
.VPFeatures .item:nth-child(6) { --stagger-index: 6; }

/* 全局动画效果 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.VPContent {
  animation: fadeIn 0.6s ease-out;
}

/* 主页布局 */
.VPHome {
  padding-bottom: 4rem;
  position: relative;
  z-index: 1;
  max-width: 100vw;
  margin: 0 auto;
}

/* 强制所有页面使用全宽 */
.Layout,
.VPDoc,
.VPHome,
body,
#app {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

/* 导航栏样式 */
.VPNav {
  border-bottom: 1px solid var(--vp-c-divider);
  backdrop-filter: blur(10px);
  background: rgba(var(--vp-c-bg-rgb), 0.8);
  position: sticky;
  top: 0;
  z-index: 1000 !important;
  overflow: visible !important;
}

.VPNav .container {
  max-width: 100vw !important;
  margin: 0 auto;
  padding: 0 0.25rem;
  width: 100%;
  box-sizing: border-box;
  overflow: visible !important;
}

.VPNavBar {
  overflow: visible !important;
}

.VPNav .content,
.VPNav .content-body {
  overflow: visible !important;
}

.VPNav .title {
  font-weight: 700;
  font-size: 1.2rem;
}

.VPNav .nav {
  gap: 2rem;
}

.VPNav .nav a {
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.VPNav .nav a:hover {
  background: var(--vp-c-brand-soft);
  color: var(--vp-c-brand-1);
}

/* 确保导航栏下拉菜单显示在最上层 */
.VPFlyout,
.VPFlyout .button,
.VPFlyout .text {
  overflow: visible !important;
}

/* 专门针对专栏教程等下拉菜单 */
.VPNavBarMenuGroup,
.VPNavBarMenu {
  position: relative;
  overflow: visible !important;
  z-index: 1000 !important;
}

/* 下拉菜单本身的样式 */
.VPNavBarMenu .VPMenu,
.VPNavBarMenuGroup .VPMenu {
  z-index: 10000 !important;
  overflow: visible !important;
}

/* 确保导航栏相关元素可见 */
.VPNav,
.VPNav .VPNavBar,
.VPNav .VPNavBarTitle,
.VPNav .VPNavBarSearch,
.VPNav .VPNavBarMenu {
  overflow: visible !important;
}

/* 下拉菜单容器 */
.VPNavBar .VPFlyout,
.VPNavBar .VPMenu {
  position: relative;
  overflow: visible !important;
  z-index: 1000 !important;
}

/* 下拉菜单内容 */
.VPFlyout .flyout,
.VPMenu .menu {
  overflow: visible !important;
  z-index: 10000 !important;
}

/* ==========  首页英雄区域样式 ========== */
.VPHero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, var(--vp-c-bg) 0%, var(--vp-c-bg-soft) 50%, var(--vp-c-bg) 100%);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.VPHero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(62, 175, 124, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.VPHero .container {
  max-width: 100vw;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
  padding: 0 2rem;
}

.VPHero .name,
.VPHero .text {
  font-size: 3.2rem !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, var(--vp-c-brand-1) 0%, var(--vp-c-brand-3) 50%, var(--vp-c-brand-1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem !important;
  text-align: center;
  letter-spacing: -0.02em;
  position: relative;
}

.VPHero .name::after,
.VPHero .text::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--vp-c-brand-1), var(--vp-c-brand-3));
  transform: translateX(-50%);
  border-radius: 2px;
  opacity: 0.7;
}

.VPHero .tagline {
  font-size: 1.4rem !important;
  max-width: 700px;
  margin: 2rem auto 3rem !important;
  text-align: center;
  color: var(--vp-c-text-1);
  line-height: 1.6;
  font-weight: 400;
  position: relative;
}

.VPHero .tagline::before {
  content: '✨';
  position: absolute;
  left: -2rem;
  top: 0;
  font-size: 1.2rem;
  opacity: 0.6;
}

.VPHero .tagline::after {
  content: '✨';
  position: absolute;
  right: -2rem;
  top: 0;
  font-size: 1.2rem;
  opacity: 0.6;
}

.VPHero .image-bg {
  opacity: 0.6;
  filter: blur(30px);
  animation: pulse 8s infinite alternate;
}

@keyframes pulse {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 0.7;
  }
}

/* ==========  首页特性区域样式 ========== */
.VPFeatures {
  background: var(--vp-c-bg);
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.VPFeatures .container {
  max-width: 100vw;
  position: relative;
  z-index: 1;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  padding: 0 2rem;
}

.VPFeatures .items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 1100px;
  margin: 3rem auto 0;
  padding: 0 1rem;
  justify-content: center;
  width: 100%;
  justify-items: center;
}

.VPFeatures .item {
  position: relative;
  padding: 2.5rem 2rem 2rem 2rem;
  border-radius: 24px;
  background: linear-gradient(145deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1.5px solid;
  border-image: linear-gradient(135deg, 
    rgba(62, 175, 124, 0.4),
    rgba(52, 211, 153, 0.2),
    rgba(62, 175, 124, 0.4)) 1;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: visible;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 0 1px rgba(62, 175, 124, 0.1);
  min-height: 220px;
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  width: 100%;
  cursor: pointer;
  z-index: 1;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.VPFeatures .item::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, 
    rgba(62, 175, 124, 0.4),
    rgba(52, 211, 153, 0.3),
    rgba(62, 175, 124, 0.4));
  opacity: 0;
  transition: all 0.5s ease;
  border-radius: 24px;
  z-index: -1;
  filter: blur(12px);
}

.VPFeatures .item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(135deg, 
    rgba(62, 175, 124, 0.6),
    rgba(52, 211, 153, 0.4),
    rgba(62, 175, 124, 0.6));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: all 0.5s ease;
  z-index: -1;
}

.VPFeatures .item:hover {
  transform: translateY(-16px) scale(1.03);
  box-shadow: 
    0 25px 70px rgba(62, 175, 124, 0.3),
    0 15px 40px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 0 1px rgba(62, 175, 124, 0.3);
  border-image: linear-gradient(135deg, 
    rgba(62, 175, 124, 0.8),
    rgba(52, 211, 153, 0.6),
    rgba(62, 175, 124, 0.8)) 1;
  overflow: visible;
  z-index: 100;
  height: auto;
  background: linear-gradient(145deg, 
    rgba(255, 255, 255, 0.15) 0%, 
    rgba(255, 255, 255, 0.08) 100%);
}

.VPFeatures .item:hover::before {
  opacity: 1;
  filter: blur(20px);
}

.VPFeatures .item:hover::after {
  opacity: 1;
}

.VPFeatures .item.active {
  background: linear-gradient(145deg, 
    rgba(62, 175, 124, 0.12) 0%, 
    rgba(62, 175, 124, 0.08) 100%);
  border-image: linear-gradient(135deg, 
    rgba(62, 175, 124, 0.8),
    rgba(52, 211, 153, 0.6),
    rgba(62, 175, 124, 0.8)) 1;
  box-shadow: 
    0 15px 50px rgba(62, 175, 124, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 0 1px rgba(62, 175, 124, 0.4);
}

.VPFeatures .item.active::before {
  opacity: 0.6;
  filter: blur(16px);
}

.VPFeatures .icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, 
    rgba(62, 175, 124, 0.25), 
    rgba(52, 211, 153, 0.15));
  border-radius: 20px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 1.5rem;
  color: #10b981;
  position: relative;
  overflow: visible;
  border: 1.5px solid rgba(62, 175, 124, 0.3);
  box-shadow: 
    0 8px 24px rgba(62, 175, 124, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.VPFeatures .icon::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(135deg, 
    rgba(62, 175, 124, 0.5),
    rgba(52, 211, 153, 0.4),
    rgba(62, 175, 124, 0.5));
  opacity: 0;
  transition: all 0.5s ease;
  border-radius: 20px;
  z-index: -1;
  filter: blur(10px);
}

.VPFeatures .icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: linear-gradient(135deg, 
    rgba(62, 175, 124, 0.6),
    transparent,
    rgba(52, 211, 153, 0.6));
  opacity: 0;
  transition: all 0.5s ease;
  z-index: -2;
  animation: icon-rotate 3s linear infinite;
}

@keyframes icon-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.VPFeatures .icon img,
.VPFeatures .icon svg {
  width: 40px;
  height: 40px;
  color: inherit;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 2px 8px rgba(62, 175, 124, 0.3));
}

.VPFeatures .icon svg {
  stroke: currentColor;
  stroke-width: 1.5;
}

.VPFeatures .item:hover .icon {
  background: linear-gradient(135deg, 
    rgba(62, 175, 124, 0.4), 
    rgba(52, 211, 153, 0.3));
  transform: scale(1.15) translateY(-5px);
  box-shadow: 
    0 16px 40px rgba(62, 175, 124, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-color: rgba(62, 175, 124, 0.6);
}

.VPFeatures .item:hover .icon::before {
  opacity: 1;
  filter: blur(15px);
}

.VPFeatures .item:hover .icon::after {
  opacity: 1;
  animation-duration: 2s;
}

.VPFeatures .item:hover .icon img,
.VPFeatures .item:hover .icon svg {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 4px 12px rgba(62, 175, 124, 0.5));
}

.VPFeatures .item.active .icon {
  background: linear-gradient(135deg, 
    rgba(62, 175, 124, 0.4), 
    rgba(52, 211, 153, 0.3));
  box-shadow: 
    0 12px 32px rgba(62, 175, 124, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  border-color: rgba(62, 175, 124, 0.5);
}

.VPFeatures .item.active .icon::before {
  opacity: 0.7;
  filter: blur(12px);
}

.VPFeatures .title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  text-align: center;
  background: linear-gradient(135deg, 
    var(--vp-c-text-1) 0%, 
    var(--vp-c-brand-1) 50%,
    var(--vp-c-text-1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  line-height: 1.3;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  position: relative;
  z-index: 2;
  transition: all 0.5s ease;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 8px rgba(62, 175, 124, 0.15);
}

.VPFeatures .item:hover .title {
  background-position: right center;
  transform: scale(1.05);
  text-shadow: 0 4px 12px rgba(62, 175, 124, 0.3);
}

.VPFeatures .subtitle {
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0 0 1rem;
  text-align: center;
  color: var(--vp-c-text-2);
  line-height: 1.5;
  opacity: 0.85;
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
  padding: 0 0.5rem;
}

.VPFeatures .item:hover .subtitle {
  color: var(--vp-c-brand-1);
  opacity: 1;
  transform: translateY(-2px);
}

.VPFeatures .details {
  text-align: center;
  color: var(--vp-c-text-2);
  line-height: 1.6;
  font-size: 0.9rem;
  margin: 0.75rem 0 0 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  opacity: 0;
  position: relative;
  z-index: 3;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  height: 0;
  max-height: 0;
  overflow: hidden;
  padding: 0 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  text-overflow: ellipsis;
}

/* 悬停时的优雅效果 - 从底部滑入展示详细信息 */
.VPFeatures .item:hover .details {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateY(0);
  opacity: 1;
  height: 105px;
  max-height: none;
  width: 100%;
  color: white;
  font-weight: 600;
  background: linear-gradient(
    to top,
    rgba(16, 185, 129, 0.98) 0%,
    rgba(5, 150, 105, 0.96) 30%,
    rgba(4, 120, 87, 0.94) 100%
  );
  padding: 0 1.25rem;
  border-radius: 0 0 24px 24px;
  margin: 0;
  box-shadow: 
    0 -10px 40px rgba(0, 0, 0, 0.25),
    inset 0 2px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
  line-height: 1.7;
  letter-spacing: 0.4px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: normal;
  word-wrap: break-word;
  z-index: 200;
  font-size: 0.95rem;
  text-align: center;
  animation: slideUpFade 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.VPFeatures .item:hover .details::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* 添加滑入动画 */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 移除按钮样式，改为整体卡片可点击 */
.VPFeatures .item a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* 文章内容样式 */
.vp-doc h1 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--vp-c-divider);
  font-weight: 700;
  line-height: 1.3;
  color: var(--vp-c-text-1);
}

.vp-doc h2 {
  font-size: 1.8rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--vp-c-divider);
  font-weight: 600;
  line-height: 1.4;
  color: var(--vp-c-text-1);
}

.vp-doc h3 {
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--vp-c-text-1);
}

.vp-doc h4 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.8rem;
  font-weight: 600;
  color: var(--vp-c-text-1);
}

.vp-doc p {
  line-height: 1.75;
  margin: 1rem 0;
  color: var(--vp-c-text-2);
  font-size: 1rem;
}

.vp-doc a {
  text-decoration: none;
  color: var(--vp-c-brand-1);
  transition: all 0.2s ease;
  font-weight: 500;
}

.vp-doc a:hover {
  color: var(--vp-c-brand-2);
  text-decoration: underline;
}

.vp-doc blockquote {
  border-left: 4px solid var(--vp-c-brand-1);
  padding: 1rem 1.5rem;
  background: linear-gradient(90deg, var(--vp-c-brand-dimm), transparent);
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--vp-c-text-2);
}

.vp-doc blockquote p {
  margin: 0.5rem 0;
}

.vp-doc code {
  font-family: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
  padding: 0.25em 0.5em;
  background-color: var(--vp-c-mute);
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--vp-c-text-1);
  font-weight: 500;
}

.vp-doc pre {
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow-x: auto;
  background-color: var(--vp-c-bg-soft);
  border: 1px solid var(--vp-c-divider);
}

.vp-doc pre code {
  padding: 0;
  background-color: transparent;
  border-radius: 0;
  font-size: 0.875em;
  line-height: 1.6;
  color: var(--vp-c-text-1);
  font-weight: normal;
}

.vp-doc ul,
.vp-doc ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.vp-doc li {
  margin: 0.5rem 0;
  line-height: 1.7;
  color: var(--vp-c-text-2);
}

.vp-doc table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--vp-c-divider);
}

.vp-doc tr {
  border-top: 1px solid var(--vp-c-divider);
  transition: background-color 0.2s;
}

.vp-doc tr:nth-child(2n) {
  background-color: var(--vp-c-bg-soft);
}

.vp-doc th,
.vp-doc td {
  border: 1px solid var(--vp-c-divider);
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.95rem;
}

.vp-doc th {
  font-weight: 600;
  background-color: var(--vp-c-bg-soft);
  color: var(--vp-c-text-1);
}

.vp-doc td {
  color: var(--vp-c-text-2);
}

/* ==========  移动端优化 ========== */
@media (max-width: 640px) {
  /* 文档页面 */
  .VPDoc:not(:has(.article-list-page)) .vp-doc {
    padding: 24px 16px 48px !important;
    max-width: 100% !important;
  }
  
  .VPDoc:not(:has(.article-list-page)) .container {
    max-width: 100% !important;
    padding: 0 1rem !important;
  }

  .vp-doc h1 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    line-height: 1.25;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .vp-doc h2 {
    font-size: 1.35rem;
    margin: 2rem 0 0.8rem;
    padding-bottom: 0.4rem;
    line-height: 1.3;
    word-wrap: break-word;
  }

  .vp-doc h3 {
    font-size: 1.15rem;
    margin: 1.5rem 0 0.6rem;
    line-height: 1.35;
  }

  .vp-doc h4 {
    font-size: 1.05rem;
    margin: 1.2rem 0 0.5rem;
  }

  .vp-doc p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0.8rem 0;
    text-align: justify;
  }

  .vp-doc blockquote {
    padding: 0.8rem 1rem;
    margin: 1.2rem 0;
    border-radius: 0 6px 6px 0;
    font-size: 0.9rem;
  }

  .vp-doc code {
    font-size: 0.85em;
    padding: 0.2em 0.4em;
    word-break: break-word;
  }

  .vp-doc pre {
    margin: 1.2rem -16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .vp-doc pre code {
    font-size: 0.8em;
    line-height: 1.5;
    display: block;
    padding: 1rem 16px;
  }

  .vp-doc ul,
  .vp-doc ol {
    padding-left: 1.25rem;
    margin: 0.8rem 0;
  }

  .vp-doc li {
    font-size: 0.95rem;
    margin: 0.4rem 0;
    line-height: 1.6;
  }

  .vp-doc table {
    margin: 1.2rem -16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    font-size: 0.85rem;
  }

  .vp-doc th,
  .vp-doc td {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }

  /* 图片优化 */
  .vp-doc img {
    margin: 1.2rem 0;
    border-radius: 6px;
  }

  /* 链接优化 */
  .vp-doc a {
    word-break: break-word;
  }
}

/* ==========  平板端优化 ========== */
@media (min-width: 641px) and (max-width: 768px) {
  /* 文档页面 */
  .VPDoc:not(:has(.article-list-page)) .vp-doc {
    padding: 32px 24px 64px !important;
    max-width: 100% !important;
  }
  
  .VPDoc:not(:has(.article-list-page)) .container {
    max-width: 100% !important;
    padding: 0 1.5rem !important;
  }

  .vp-doc h1 {
    font-size: 1.9rem;
  }

  .vp-doc h2 {
    font-size: 1.6rem;
    margin: 2.2rem 0 0.9rem;
  }

  .vp-doc h3 {
    font-size: 1.3rem;
  }

  .vp-doc p {
    font-size: 0.97rem;
  }

  .vp-doc pre code {
    font-size: 0.83em;
  }
}

/* 英雄区域按钮样式 */
.VPHero .actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

.VPHero .action {
  position: relative;
  overflow: hidden;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.VPHero .action::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.VPHero .action:hover::before {
  left: 100%;
}

.VPHero .action.brand {
  background: linear-gradient(135deg, var(--vp-c-brand-1), var(--vp-c-brand-3));
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.VPHero .action.brand:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(62, 175, 124, 0.4);
}

.VPHero .action.alt {
  background: transparent;
  color: var(--vp-c-brand-1);
  border: 2px solid var(--vp-c-brand-1);
  padding: 1rem 2.5rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.VPHero .action.alt:hover {
  background: var(--vp-c-brand-1);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(62, 175, 124, 0.3);
}

/* 响应式调整 */
@media (max-width: 640px) {
  .VPFeatures {
    padding: 3rem 1rem;
  }
  
  .VPFeatures .items {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 1fr);
    gap: 1.5rem;
    max-width: 100%;
    padding: 0 0.5rem;
  }
  
  .VPFeatures .item {
    padding: 2rem 1.5rem;
    min-height: 160px;
    height: auto;
    background: linear-gradient(145deg, 
      rgba(255, 255, 255, 0.1) 0%, 
      rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(62, 175, 124, 0.25);
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  
  .VPFeatures .item::before {
    background: linear-gradient(135deg, 
      rgba(62, 175, 124, 0.1), 
      rgba(62, 175, 124, 0.05));
    opacity: 1;
  }
  
  /* 移动端禁用悬停动画效果 */
  .VPFeatures .item:hover {
    transform: none;
    height: auto;
    overflow: visible;
  }
  
  .VPFeatures .icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, 
      rgba(62, 175, 124, 0.25), 
      rgba(62, 175, 124, 0.15));
    border: 1.5px solid rgba(62, 175, 124, 0.35);
    box-shadow: 0 4px 16px rgba(62, 175, 124, 0.25);
  }
  
  .VPFeatures .icon img,
  .VPFeatures .icon svg {
    width: 32px;
    height: 32px;
  }
  
  .VPFeatures .item:hover .icon {
    transform: none;
  }
  
  .VPFeatures .title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--vp-c-text-1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  }
  
  .VPFeatures .subtitle {
    font-size: 0.8rem;
  }
  
  .VPFeatures .details {
    font-size: 0.9rem;
    height: auto;
    max-height: none;
    overflow: visible;
    opacity: 0.85;
    color: var(--vp-c-text-2);
    display: block;
    margin-top: 0.5rem;
    line-height: 1.5;
  }
  
  /* 移动端不显示悬停详情效果 */
  .VPFeatures .item:hover .details {
    position: static;
    transform: none;
    opacity: 0.85;
    height: 2.8em;
    max-height: 2.8em;
    overflow: hidden;
    background: none;
    padding: 0;
    margin-top: 0.5rem;
    box-shadow: none;
    color: var(--vp-c-text-2);
    font-weight: normal;
    border-radius: 0;
    animation: none;
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  .VPFeatures .items {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 100%;
    padding: 0 1rem;
  }
  
  .VPFeatures .item {
    padding: 2rem 1.5rem;
    min-height: 180px;
    height: auto;
    background: linear-gradient(145deg, 
      rgba(255, 255, 255, 0.08) 0%, 
      rgba(255, 255, 255, 0.04) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(62, 175, 124, 0.2);
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  
  .VPFeatures .item::before {
    background: linear-gradient(135deg, 
      rgba(62, 175, 124, 0.08), 
      rgba(62, 175, 124, 0.04));
    opacity: 1;
  }
  
  .VPFeatures .item:hover {
    transform: translateY(-6px) scale(1.01);
    height: auto;
  }
  
  .VPFeatures .icon {
    width: 68px;
    height: 68px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, 
      rgba(62, 175, 124, 0.22), 
      rgba(62, 175, 124, 0.12));
    border: 1.5px solid rgba(62, 175, 124, 0.3);
    box-shadow: 0 4px 16px rgba(62, 175, 124, 0.22);
  }
  
  .VPFeatures .icon img,
  .VPFeatures .icon svg {
    width: 34px;
    height: 34px;
  }
  
  .VPFeatures .title {
    font-size: 1.25rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  }
  
  .VPFeatures .subtitle {
    font-size: 0.82rem;
  }
  
  .VPFeatures .details {
    font-size: 0.875rem;
    height: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
  }
  
  .VPFeatures .item:hover .details {
    height: 95px;
    max-height: none;
    padding: 0 1rem;
    font-size: 0.875rem;
    line-height: 1.65;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
  }
}

@media (max-width: 768px) {
  .VPHero {
    padding: 5rem 0 3rem;
    background: linear-gradient(135deg, 
      var(--vp-c-bg) 0%, 
      var(--vp-c-bg-soft) 50%, 
      var(--vp-c-bg) 100%);
  }
  
  .VPHero .name,
  .VPHero .text {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }

  .VPHero .tagline {
    font-size: 1rem !important;
    padding: 0 1.5rem;
    margin: 1.5rem auto 2.5rem !important;
    line-height: 1.5;
  }
  
  .VPHero .tagline::before,
  .VPHero .tagline::after {
    display: none;
  }
  
  .VPHero .actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .VPHero .action {
    width: 80%;
    max-width: 280px;
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }

  .post-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .recent-posts {
    margin: 2rem 1rem;
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }
  
  .recent-posts h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
  
  .post-item {
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  }
  
  .post-title {
    font-size: 1.2rem;
  }
  
  .post-desc {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .VPFeatures .items {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2.25rem;
    max-width: 950px;
  }
  
  .VPFeatures .item {
    padding: 2.5rem 2rem;
    min-height: 200px;
    height: 200px;
  }
  
  .VPFeatures .icon {
    width: 72px;
    height: 72px;
    margin-bottom: 1.25rem;
  }
  
  .VPFeatures .icon img,
  .VPFeatures .icon svg {
    width: 36px;
    height: 36px;
  }
  
  .VPFeatures .title {
    font-size: 1.3rem;
  }
  
  .VPFeatures .subtitle {
    font-size: 0.85rem;
  }
  
  .VPFeatures .details {
    font-size: 0.9rem;
    height: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    opacity: 0;
  }
  
  .VPFeatures .item:hover .details {
    height: 100px;
    max-height: none;
    padding: 0 1rem;
    font-size: 0.9rem;
    line-height: 1.7;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
  }

  .post-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1025px) and (max-width: 1200px) {
  .VPFeatures .items {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1100px;
  }
  
  .VPFeatures .item {
    padding: 2.5rem 2rem;
    min-height: 200px;
    height: 200px;
  }
  
  .VPFeatures .icon {
    width: 72px;
    height: 72px;
    margin-bottom: 1.25rem;
  }
  
  .VPFeatures .icon img,
  .VPFeatures .icon svg {
    width: 36px;
    height: 36px;
  }
  
  .VPFeatures .title {
    font-size: 1.3rem;
  }
  
  .VPFeatures .subtitle {
    font-size: 0.85rem;
  }
  
  .VPFeatures .details {
    font-size: 0.9rem;
    height: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    opacity: 0;
  }
  
  .VPFeatures .item:hover .details {
    height: 100px;
    max-height: none;
    padding: 0 1rem;
    font-size: 0.9rem;
    line-height: 1.7;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
  }

  .post-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (min-width: 1201px) and (max-width: 2559px) {
  .VPFeatures .items {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1100px;
  }
  
  .VPFeatures .item {
    padding: 2.5rem 2rem;
    min-height: 200px;
    height: 200px;
  }
  
  .VPFeatures .icon {
    width: 72px;
    height: 72px;
    margin-bottom: 1.25rem;
  }
  
  .VPFeatures .icon img,
  .VPFeatures .icon svg {
    width: 36px;
    height: 36px;
  }
  
  .VPFeatures .title {
    font-size: 1.3rem;
  }
  
  .VPFeatures .subtitle {
    font-size: 0.85rem;
  }
  
  .VPFeatures .details {
    font-size: 0.9rem;
    height: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    opacity: 0;
  }
  
  .VPFeatures .item:hover .details {
    height: 100px;
    max-height: none;
    padding: 0 1rem;
    font-size: 0.9rem;
    line-height: 1.65;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
  }

  .post-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

/* 2560x1440 分辨率优化 */
@media (min-width: 2560px) and (max-width: 3439px) {
  .VPFeatures .items {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1500px;
  }
  
  .VPFeatures .item {
    padding: 2.75rem 2.25rem;
    min-height: 240px;
    height: 240px;
  }
  
  .VPFeatures .icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
  }
  
  .VPFeatures .icon img,
  .VPFeatures .icon svg {
    width: 40px;
    height: 40px;
  }
  
  .VPFeatures .title {
    font-size: 1.4rem;
  }
  
  .VPFeatures .subtitle {
    font-size: 0.9rem;
  }
  
  .VPFeatures .details {
    font-size: 0.95rem;
    line-height: 1.6;
    height: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    opacity: 0;
  }
  
  /* 2560分辨率下的悬停效果优化 */
  .VPFeatures .item:hover .details {
    height: 110px;
    max-height: none;
    padding: 0 1rem;
    font-size: 1rem;
    line-height: 1.7;
    letter-spacing: 0.35px;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
  }

  .post-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
  
  .post-item {
    padding: 2.25rem;
  }
  
  .VPHero .name,
  .VPHero .text {
    font-size: 3.6rem !important;
  }
  
  .VPHero .tagline {
    font-size: 1.5rem !important;
  }
}

/* 图片缩放功能样式 */
.main img:not(.no-zoom) {
  cursor: zoom-in !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
}

.main img:not(.no-zoom):hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* medium-zoom 覆盖层样式 */
.medium-zoom-overlay {
  z-index: 100;
  backdrop-filter: blur(4px);
  cursor: zoom-out !important;
}

.medium-zoom-image {
  cursor: zoom-out !important;
  z-index: 101;
  border-radius: 8px;
}

/* 确保放大后的图片显示正确的光标 */
.medium-zoom-image--opened {
  cursor: zoom-out !important;
}

/* 确保普通图片始终显示放大光标 */
.medium-zoom-image:not(.medium-zoom-image--opened) {
  cursor: zoom-in !important;
}

/* 强制重置图片光标样式，确保状态正确 */
.main img:not(.no-zoom):not(.medium-zoom-image--opened) {
  cursor: zoom-in !important;
}

/* 当图片从放大状态恢复时，确保光标正确 */
.main img:not(.no-zoom).medium-zoom-image:not(.medium-zoom-image--opened) {
  cursor: zoom-in !important;
}

/* Mermaid 图表缩放功能样式 */
.vp-doc [class*="mermaid"] {
  position: relative;
  padding: 1.5rem;
  background: var(--vp-c-bg-soft);
  border-radius: 12px;
  border: 1px solid var(--vp-c-divider);
  margin: 2rem 0;
  overflow: visible;
}

.vp-doc [class*="mermaid"] svg {
  cursor: zoom-in !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

.vp-doc [class*="mermaid"] svg:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.vp-doc [class*="mermaid"]::before {
  content: '🔍 点击放大查看';
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.75rem;
  color: var(--vp-c-text-2);
  background: var(--vp-c-bg);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.vp-doc [class*="mermaid"]:hover::before {
  opacity: 0.8;
}

/* Mermaid 缩放标记 */
.mermaid-zoom-enabled {
  cursor: zoom-in !important;
}

/* 暗色模式下的 Mermaid 样式优化 */
.dark .vp-doc [class*="mermaid"] {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark .vp-doc [class*="mermaid"]::before {
  background: rgba(0, 0, 0, 0.6);
  color: rgba(255, 255, 255, 0.8);
}

/* 移动端 Mermaid 优化 */
@media (max-width: 768px) {
  .vp-doc [class*="mermaid"] {
    padding: 1rem;
    margin: 1.5rem 0;
  }
  
  .vp-doc [class*="mermaid"]::before {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }
  
  .vp-doc [class*="mermaid"] svg {
    max-width: 100%;
  }
}

/* 添加图片加载效果 */
.vp-doc img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 文章底部样式 - 全局 */
.article-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 2px dashed var(--vp-c-divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.article-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.article-footer .tag,
.article-tags .tag {
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--vp-c-brand-dimm), rgba(62, 175, 124, 0.1));
  color: var(--vp-c-brand-1);
  border: 1px solid var(--vp-c-brand-1);
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
}

.article-footer .tag:hover,
.article-tags .tag:hover {
  background: linear-gradient(135deg, var(--vp-c-brand-1), var(--vp-c-brand-3));
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(62, 175, 124, 0.3);
}

.article-share {
  font-size: 0.9rem;
  color: var(--vp-c-text-2);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.share-link {
  color: var(--vp-c-brand-1);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  background: var(--vp-c-brand-dimm);
  font-weight: 500;
  display: inline-block;
}

.share-link:hover {
  background: var(--vp-c-brand-1);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(62, 175, 124, 0.3);
}

/* 移动端文章底部优化 */
@media (max-width: 640px) {
  .article-footer {
    margin-top: 2rem;
    padding-top: 1.2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .article-tags {
    width: 100%;
    gap: 0.4rem;
  }

  .article-footer .tag,
  .article-tags .tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
  }

  .article-share {
    width: 100%;
    font-size: 0.85rem;
  }

  .share-link {
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
  }
}

/* 平板端文章底部 */
@media (min-width: 641px) and (max-width: 768px) {
  .article-footer {
    margin-top: 2.5rem;
    padding-top: 1.3rem;
  }

  .article-footer .tag,
  .article-tags .tag {
    font-size: 0.78rem;
    padding: 0.32rem 0.8rem;
  }

  .share-link {
    font-size: 0.88rem;
    padding: 0.32rem 0.8rem;
  }
}

/* 暗色模式优化 - 文章底部 */
.dark .article-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.dark .article-footer .tag,
.dark .article-tags .tag {
  background: linear-gradient(135deg, rgba(66, 211, 146, 0.15), rgba(66, 211, 146, 0.1));
  border-color: var(--vp-c-brand-1);
}

.dark .article-footer .tag:hover,
.dark .article-tags .tag:hover {
  background: linear-gradient(135deg, var(--vp-c-brand-1), var(--vp-c-brand-3));
  color: white;
}

.dark .share-link {
  background: rgba(66, 211, 146, 0.15);
}

.dark .share-link:hover {
  background: var(--vp-c-brand-1);
  color: white;
}

/* 持续学习板块样式 */
.learning-investment-section {
  margin: 5rem auto;
  padding: 0 2rem;
  max-width: 950px;
  position: relative;
  z-index: 10;
}

.learning-card {
  position: relative;
  padding: 3.5rem 3rem;
  background: linear-gradient(135deg,
    rgba(99, 102, 241, 0.05) 0%,
    rgba(139, 92, 246, 0.08) 50%,
    rgba(99, 102, 241, 0.05) 100%);
  border-radius: 28px;
  box-shadow: 
    0 25px 70px rgba(99, 102, 241, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.learning-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg,
    transparent,
    rgba(99, 102, 241, 0.8),
    rgba(139, 92, 246, 0.8),
    rgba(99, 102, 241, 0.8),
    transparent);
}

.learning-card::after {
  content: '💎';
  position: absolute;
  bottom: 2rem;
  right: 2.5rem;
  font-size: 5rem;
  opacity: 0.06;
  transform: rotate(-15deg);
  pointer-events: none;
}

.learning-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 35px 90px rgba(99, 102, 241, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
}

.card-icon {
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 8px 16px rgba(99, 102, 241, 0.3));
  animation: float-icon 3s ease-in-out infinite;
}

@keyframes float-icon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.card-title {
  margin: 0 0 2rem;
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, 
    #6366f1 0%,
    #8b5cf6 50%,
    #6366f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  letter-spacing: 1.5px;
}

.card-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  transform: translateX(-50%);
  border-radius: 2px;
}

.card-content {
  position: relative;
  z-index: 2;
}

.highlight-text {
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--vp-c-text-1);
  text-align: center;
  margin: 0 0 2rem;
  font-weight: 600;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg,
    rgba(99, 102, 241, 0.08),
    rgba(139, 92, 246, 0.12),
    rgba(99, 102, 241, 0.08));
  border-radius: 16px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  position: relative;
}

.highlight-text::before {
  content: '💡';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  opacity: 0.6;
}

.wisdom-text {
  text-align: justify;
  line-height: 2;
  margin: 2rem 0;
}

.wisdom-text p {
  margin: 1.5rem 0;
  font-size: 1.05rem;
  color: var(--vp-c-text-2);
  text-indent: 2em;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 0.5rem;
}

.wisdom-text p::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, #6366f1, #8b5cf6);
  border-radius: 2px;
  transition: height 0.3s ease;
}

.wisdom-text p:hover {
  color: var(--vp-c-text-1);
  transform: translateX(8px);
}

.wisdom-text p:hover::before {
  height: 1.2em;
}

.emphasis {
  font-weight: 600 !important;
  color: #6366f1 !important;
  font-style: italic;
  position: relative;
  padding: 0.5rem 1rem;
  margin-top: 2rem !important;
  background: linear-gradient(135deg,
    rgba(99, 102, 241, 0.08),
    rgba(139, 92, 246, 0.12));
  border-radius: 12px;
  border-left: 4px solid #6366f1;
  text-indent: 0 !important;
}

.card-footer {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px dashed rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--vp-c-text-1);
}

.footer-icon {
  font-size: 1.5rem;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 4px rgba(99, 102, 241, 0.3));
  }
  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.6));
  }
}

.footer-text {
  font-style: italic;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 响应式 - 持续学习板块 */
@media (max-width: 768px) {
  .learning-investment-section {
    margin: 3rem auto;
    padding: 0 1rem;
  }
  
  .learning-card {
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
  }
  
  .learning-card::after {
    font-size: 3.5rem;
    bottom: 1.5rem;
    right: 1.5rem;
  }
  
  .card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .card-title {
    font-size: 1.6rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
  }
  
  .highlight-text {
    font-size: 1.05rem;
    padding: 1.25rem 1.5rem;
    line-height: 1.7;
  }
  
  .highlight-text::before {
    font-size: 1.2rem;
  }
  
  .wisdom-text p {
    font-size: 0.95rem;
    text-indent: 1.5em;
    line-height: 1.8;
    margin: 1.2rem 0;
  }
  
  .emphasis {
    font-size: 0.95rem !important;
    padding: 0.75rem;
    margin-top: 1.5rem !important;
  }
  
  .card-footer {
    flex-direction: column;
    text-align: center;
    font-size: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
  }
  
  .footer-icon {
    font-size: 1.3rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .learning-card {
    padding: 3rem 2.5rem;
  }
  
  .card-title {
    font-size: 2rem;
  }
  
  .highlight-text {
    font-size: 1.2rem;
  }
  
  .wisdom-text p {
    font-size: 1rem;
  }
}

/* 暗色模式优化 - 持续学习板块 */
.dark .learning-card {
  background: linear-gradient(135deg,
    rgba(99, 102, 241, 0.08) 0%,
    rgba(139, 92, 246, 0.12) 50%,
    rgba(99, 102, 241, 0.08) 100%);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dark .learning-card:hover {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow:
    0 35px 90px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.dark .highlight-text {
  background: linear-gradient(135deg,
    rgba(99, 102, 241, 0.12),
    rgba(139, 92, 246, 0.18),
    rgba(99, 102, 241, 0.12));
  border-color: rgba(99, 102, 241, 0.3);
}

.dark .emphasis {
  background: linear-gradient(135deg,
    rgba(99, 102, 241, 0.12),
    rgba(139, 92, 246, 0.18));
  border-left-color: #8b5cf6;
}

/* 为何而写板块样式 */
.why-write-section {
  margin: 5rem auto;
  padding: 0 2rem;
  max-width: 900px;
  position: relative;
}

.why-write-container {
  position: relative;
  padding: 4rem 3.5rem;
  background: linear-gradient(135deg, 
    rgba(62, 175, 124, 0.03) 0%, 
    rgba(62, 175, 124, 0.08) 50%,
    rgba(62, 175, 124, 0.03) 100%);
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(62, 175, 124, 0.15);
  overflow: hidden;
}

.why-write-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    transparent,
    var(--vp-c-brand-1),
    var(--vp-c-brand-3),
    var(--vp-c-brand-1),
    transparent);
}

.why-write-container::after {
  content: '✍️';
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  font-size: 4rem;
  opacity: 0.08;
  transform: rotate(15deg);
  pointer-events: none;
}

.why-write-title {
  margin: 0 0 2.5rem;
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--vp-c-brand-1), var(--vp-c-brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  letter-spacing: 2px;
}

.why-write-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--vp-c-brand-1), var(--vp-c-brand-3));
  transform: translateX(-50%);
  border-radius: 2px;
}

.why-write-content {
  position: relative;
  z-index: 1;
}

.why-write-lead {
  font-size: 1.35rem;
  line-height: 2;
  color: var(--vp-c-text-1);
  text-align: center;
  margin: 0 0 2rem;
  font-weight: 500;
  font-style: italic;
  padding: 0 1rem;
  position: relative;
}

.why-write-lead::before,
.why-write-lead::after {
  content: '"';
  font-size: 2.5rem;
  color: var(--vp-c-brand-1);
  opacity: 0.3;
  line-height: 0;
  position: absolute;
}

.why-write-lead::before {
  left: -10px;
  top: 15px;
}

.why-write-lead::after {
  right: -10px;
  bottom: -5px;
}

.why-write-text {
  text-align: justify;
  line-height: 2;
}

.why-write-text p {
  margin: 1.5rem 0;
  font-size: 1.05rem;
  color: var(--vp-c-text-2);
  text-indent: 2em;
  transition: all 0.3s ease;
}

.why-write-text p:hover {
  color: var(--vp-c-text-1);
  transform: translateX(5px);
}

.why-write-signature {
  margin-top: 2.5rem !important;
  text-align: right !important;
  font-style: italic;
  color: var(--vp-c-brand-1) !important;
  font-size: 1rem !important;
  text-indent: 0 !important;
  font-weight: 500;
}

/* 分隔线样式 */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4rem auto;
  max-width: 600px;
}

.divider-line {
  flex-grow: 1;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--vp-c-brand-1), transparent);
  border-radius: 1px;
}

.divider-icon {
  font-size: 2rem;
  margin: 0 2rem;
  color: var(--vp-c-brand-1);
  animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

/* 最新文章区域样式 */
.recent-posts {
  margin: 4rem auto;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--vp-c-bg) 0%, var(--vp-c-bg-soft) 100%);
  border-radius: 24px;
  max-width: 1400px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.recent-posts::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--vp-c-brand-1), var(--vp-c-brand-3), var(--vp-c-brand-1));
  border-radius: 24px 24px 0 0;
}

.recent-posts h2 {
  margin: 0 0 2rem;
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--vp-c-brand-1), var(--vp-c-brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.recent-posts h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--vp-c-brand-1), var(--vp-c-brand-3));
  transform: translateX(-50%);
  border-radius: 2px;
}

.post-list {
  margin-top: 2rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2.5rem;
  padding: 0 1rem;
}

.post-item {
  padding: 2rem;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--vp-c-bg), var(--vp-c-bg-soft));
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--vp-c-divider);
}

.post-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--vp-c-brand-1), var(--vp-c-brand-3));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.post-item:hover::before {
  transform: scaleX(1);
}

.post-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(62, 175, 124, 0.15);
  border-color: var(--vp-c-brand-1);
}

.post-date {
  font-size: 0.9rem;
  color: var(--vp-c-text-2);
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-date::before {
  content: '📅';
  font-size: 0.8rem;
}

.post-title {
  margin: 0 0 1rem;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.4;
}

.post-title a {
  color: var(--vp-c-text-1);
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
}

.post-title a:hover {
  color: var(--vp-c-brand-1);
}

.post-desc {
  margin: 0 0 1.5rem;
  color: var(--vp-c-text-1);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

.post-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.post-tag {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--vp-c-brand-dimm), rgba(62, 175, 124, 0.1));
  color: var(--vp-c-brand-1);
  font-weight: 500;
  border: 1px solid var(--vp-c-brand-1);
  transition: all 0.3s ease;
}

.post-tag:hover {
  background: linear-gradient(135deg, var(--vp-c-brand-1), var(--vp-c-brand-3));
  color: white;
  transform: translateY(-2px);
}

.view-more {
  margin-top: 3rem;
  text-align: center;
}

.view-more a {
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  color: white;
  background: linear-gradient(135deg, var(--vp-c-brand-1), var(--vp-c-brand-3));
  text-decoration: none;
  transition: all 0.4s ease;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 25px rgba(62, 175, 124, 0.3);
  position: relative;
  overflow: hidden;
}

.view-more a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.view-more a:hover::before {
  left: 100%;
}

.view-more a:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(62, 175, 124, 0.4);
}

/* 温馨提示样式 */
.access-notice {
  max-width: 1200px;
  margin: 2rem auto 3rem;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

.notice-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, 
    rgba(255, 193, 7, 0.08) 0%, 
    rgba(255, 152, 0, 0.12) 50%,
    rgba(255, 193, 7, 0.08) 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 193, 7, 0.3);
  box-shadow: 0 8px 32px rgba(255, 193, 7, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.notice-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent,
    rgba(255, 193, 7, 0.8),
    rgba(255, 152, 0, 0.8),
    rgba(255, 193, 7, 0.8),
    transparent);
}

.notice-container::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 2rem;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.15), transparent);
  border-radius: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.6;
}

.notice-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(255, 193, 7, 0.25);
  border-color: rgba(255, 193, 7, 0.5);
}

.notice-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  animation: rotate-globe 20s linear infinite;
  filter: drop-shadow(0 4px 8px rgba(255, 193, 7, 0.3));
  position: relative;
  z-index: 2;
}

@keyframes rotate-globe {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.notice-content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.notice-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f57c00;
  margin-bottom: 0.4rem;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(255, 152, 0, 0.1);
}

.notice-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--vp-c-text-1);
  opacity: 0.9;
}

/* 加速按钮样式 */
.acceleration-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
  overflow: hidden;
  flex-shrink: 0;
  white-space: nowrap;
}

.acceleration-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.acceleration-btn:hover::before {
  left: 100%;
}

.acceleration-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.6);
}

.acceleration-btn:active {
  transform: translateY(-1px) scale(1.02);
}

.btn-icon {
  font-size: 1.2rem;
  animation: spark 2s ease-in-out infinite;
  display: inline-block;
}

@keyframes spark {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
  }
  50% {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
  }
}

.btn-text {
  letter-spacing: 0.5px;
}

/* VitePress features 包装器 */
.vp-features-wrapper {
  width: 100%;
}

/* 响应式 - 温馨提示 */
@media (max-width: 768px) {
  .access-notice {
    margin: 1.5rem auto 2rem;
    padding: 0 1rem;
  }
  
  .notice-container {
    flex-direction: row;
    text-align: left;
    gap: 1rem;
    padding: 1.25rem 1.25rem;
    background: linear-gradient(135deg, 
      rgba(255, 193, 7, 0.1) 0%, 
      rgba(255, 152, 0, 0.15) 50%,
      rgba(255, 193, 7, 0.1) 100%);
    border: 1.5px solid rgba(255, 193, 7, 0.35);
    box-shadow: 0 6px 24px rgba(255, 193, 7, 0.18);
  }
  
  .notice-container::after {
    display: none;
  }
  
  .notice-icon {
    font-size: 2rem;
    flex-shrink: 0;
  }
  
  .notice-title {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
  }
  
  .notice-text {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  
  .notice-container {
    flex-wrap: wrap;
  }
  
  .acceleration-btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.75rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
  }
  
  .btn-icon {
    font-size: 1.1rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .access-notice {
    margin: 2rem auto 2.5rem;
  }
  
  .notice-container {
    padding: 1.5rem 1.75rem;
    gap: 1.25rem;
  }
  
  .notice-icon {
    font-size: 2.25rem;
  }
  
  .notice-title {
    font-size: 1.05rem;
  }
}

/* 响应式设计 - 为何而写和文章板块 */
@media (max-width: 768px) {
  .why-write-section {
    margin: 3rem auto;
    padding: 0 1rem;
  }
  
  .why-write-container {
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    background: linear-gradient(135deg, 
      rgba(62, 175, 124, 0.05) 0%, 
      rgba(62, 175, 124, 0.1) 50%,
      rgba(62, 175, 124, 0.05) 100%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  }
  
  .why-write-container::after {
    font-size: 3rem;
    top: 1.5rem;
    right: 1.5rem;
    opacity: 0.06;
  }
  
  .why-write-title {
    font-size: 1.8rem;
    letter-spacing: 1px;
    margin-bottom: 2rem;
  }
  
  .why-write-lead {
    font-size: 1.05rem;
    padding: 0 0.5rem;
    line-height: 1.8;
  }
  
  .why-write-lead::before {
    left: -5px;
    top: 10px;
    font-size: 2rem;
  }
  
  .why-write-lead::after {
    right: -5px;
    font-size: 2rem;
  }
  
  .why-write-text p {
    font-size: 0.95rem;
    text-indent: 1.5em;
    line-height: 1.8;
    margin: 1.2rem 0;
  }
  
  .why-write-signature {
    font-size: 0.9rem !important;
    margin-top: 2rem !important;
  }

  .recent-posts {
    margin: 3rem 1rem;
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }
  
  .post-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0;
  }
  
  .post-item {
    padding: 1.75rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  }
  
  .recent-posts h2 {
    font-size: 1.8rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .why-write-container {
    padding: 3.5rem 3rem;
  }
  
  .why-write-title {
    font-size: 2.2rem;
  }
  
  .why-write-lead {
    font-size: 1.25rem;
  }
  
  .why-write-text p {
    font-size: 1rem;
  }

  .post-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1025px) and (max-width: 1200px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (min-width: 1201px) {
  .post-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

/* 移动端触摸优化 */
@media (max-width: 768px) {
  /* 增加触摸目标大小 */
  .VPFeatures .item a,
  .post-title a,
  .VPHero .action {
    -webkit-tap-highlight-color: rgba(62, 175, 124, 0.2);
    touch-action: manipulation;
  }
  
  /* 优化移动端滚动性能 */
  .VPFeatures .items,
  .post-grid {
    -webkit-overflow-scrolling: touch;
  }
  
  /* 移动端导航栏优化 */
  .VPNav {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  
  /* 移动端字体优化 */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }
}

/* ========== 实用工具展示区域样式 ========== */
.featured-tools-section {
  margin: 5rem auto;
  padding: 0 2rem;
  max-width: 1200px;
  position: relative;
  z-index: 10;
}

.featured-tools-container {
  position: relative;
  padding: 3.5rem 3rem;
  background: linear-gradient(135deg,
    rgba(139, 92, 246, 0.05) 0%,
    rgba(59, 130, 246, 0.08) 50%,
    rgba(139, 92, 246, 0.05) 100%);
  border-radius: 28px;
  box-shadow: 
    0 25px 70px rgba(139, 92, 246, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-tools-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg,
    transparent,
    rgba(139, 92, 246, 0.8),
    rgba(59, 130, 246, 0.8),
    rgba(139, 92, 246, 0.8),
    transparent);
}

.featured-tools-container::after {
  content: '🛠️';
  position: absolute;
  bottom: 2rem;
  right: 2.5rem;
  font-size: 5rem;
  opacity: 0.06;
  transform: rotate(-15deg);
  pointer-events: none;
}

.featured-tools-container:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 35px 90px rgba(139, 92, 246, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-color: rgba(139, 92, 246, 0.35);
}

.featured-tools-title {
  margin: 0 0 0.75rem;
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, 
    #8b5cf6 0%,
    #3b82f6 50%,
    #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  letter-spacing: 1.5px;
}

.featured-tools-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, #8b5cf6, #3b82f6);
  transform: translateX(-50%);
  border-radius: 2px;
}

.featured-tools-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--vp-c-text-2);
  margin: 0 0 2.5rem;
  font-weight: 500;
}

.tools-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.featured-tool-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.9) 100%);
  border-radius: 20px;
  border: 2px solid transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.featured-tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.1),
    rgba(59, 130, 246, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 20px;
}

.featured-tool-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 
    0 20px 50px rgba(139, 92, 246, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.featured-tool-card:hover::before {
  opacity: 1;
}

.tool-card-icon {
  font-size: 3rem;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.15),
    rgba(59, 130, 246, 0.15));
  border-radius: 16px;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.featured-tool-card:hover .tool-card-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.25),
    rgba(59, 130, 246, 0.25));
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.tool-card-content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.tool-card-title {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--vp-c-text-1);
  transition: color 0.3s ease;
}

.featured-tool-card:hover .tool-card-title {
  color: #8b5cf6;
}

.tool-card-desc {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--vp-c-text-2);
}

.tool-card-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tool-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 12px;
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.1),
    rgba(59, 130, 246, 0.1));
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.3);
  font-weight: 500;
  transition: all 0.3s ease;
}

.featured-tool-card:hover .tool-badge {
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

.tool-card-arrow {
  font-size: 1.5rem;
  color: #8b5cf6;
  opacity: 0.5;
  transition: all 0.4s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.featured-tool-card:hover .tool-card-arrow {
  opacity: 1;
  transform: translateX(5px);
}

.tools-more {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px dashed rgba(139, 92, 246, 0.2);
}

.tools-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: #8b5cf6;
  text-decoration: none;
  border: 2px solid #8b5cf6;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tools-more-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), transparent);
  transition: left 0.5s ease;
}

.tools-more-link:hover::before {
  left: 100%;
}

.tools-more-link:hover {
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  color: white;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* 响应式 - 工具展示区域 */
@media (max-width: 768px) {
  .featured-tools-section {
    margin: 3rem auto;
    padding: 0 1rem;
  }
  
  .featured-tools-container {
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
  }
  
  .featured-tools-container::after {
    font-size: 3.5rem;
    bottom: 1.5rem;
    right: 1.5rem;
  }
  
  .featured-tools-title {
    font-size: 1.6rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
  }
  
  .featured-tools-subtitle {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }
  
  .tools-showcase {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .featured-tool-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  
  .tool-card-icon {
    width: 70px;
    height: 70px;
    font-size: 2.5rem;
  }
  
  .tool-card-title {
    font-size: 1.2rem;
  }
  
  .tool-card-desc {
    font-size: 0.85rem;
  }
  
  .tool-card-arrow {
    display: none;
  }
  
  .tools-more-link {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .featured-tools-container {
    padding: 3rem 2.5rem;
  }
  
  .featured-tools-title {
    font-size: 2rem;
  }
  
  .featured-tools-subtitle {
    font-size: 1.05rem;
  }
  
  .tools-showcase {
    gap: 1.25rem;
  }
}

/* 暗色模式优化 - 工具展示区域 */
.dark .featured-tools-container {
  background: linear-gradient(135deg,
    rgba(139, 92, 246, 0.08) 0%,
    rgba(59, 130, 246, 0.12) 50%,
    rgba(139, 92, 246, 0.08) 100%);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dark .featured-tools-container:hover {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow:
    0 35px 90px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.dark .featured-tool-card {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.04) 100%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.dark .featured-tool-card:hover {
  box-shadow: 
    0 20px 50px rgba(139, 92, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.dark .tool-card-icon {
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.2),
    rgba(59, 130, 246, 0.2));
}

.dark .featured-tool-card:hover .tool-card-icon {
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.3),
    rgba(59, 130, 246, 0.3));
}

.dark .tool-badge {
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.15),
    rgba(59, 130, 246, 0.15));
  border-color: rgba(139, 92, 246, 0.4);
}

/* 暗色模式下移动端卡片优化 */
@media (max-width: 640px) {
  .dark .VPFeatures .item {
    background: linear-gradient(145deg, 
      rgba(255, 255, 255, 0.08) 0%, 
      rgba(255, 255, 255, 0.04) 100%);
    border: 1.5px solid rgba(66, 211, 146, 0.2);
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  
  .dark .VPFeatures .item::before {
    background: linear-gradient(135deg, 
      rgba(66, 211, 146, 0.12), 
      rgba(66, 211, 146, 0.06));
  }
  
  .dark .VPFeatures .icon {
    background: linear-gradient(135deg, 
      rgba(66, 211, 146, 0.25), 
      rgba(66, 211, 146, 0.15));
    border: 1.5px solid rgba(66, 211, 146, 0.35);
    box-shadow: 0 4px 16px rgba(66, 211, 146, 0.25);
  }
  
  .dark .why-write-container {
    background: linear-gradient(135deg, 
      rgba(66, 211, 146, 0.06) 0%, 
      rgba(66, 211, 146, 0.12) 50%,
      rgba(66, 211, 146, 0.06) 100%);
    border: 1px solid rgba(66, 211, 146, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  }
  
  .dark .post-item {
    background: linear-gradient(145deg, 
      rgba(255, 255, 255, 0.05), 
      rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(66, 211, 146, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  
  .dark .notice-container {
    background: linear-gradient(135deg, 
      rgba(255, 193, 7, 0.12) 0%, 
      rgba(255, 152, 0, 0.18) 50%,
      rgba(255, 193, 7, 0.12) 100%);
    border: 1.5px solid rgba(255, 193, 7, 0.4);
    box-shadow: 0 6px 24px rgba(255, 193, 7, 0.2);
  }
}

/* 平板设备暗色模式优化 */
@media (min-width: 641px) and (max-width: 768px) {
  .dark .VPFeatures .item {
    background: linear-gradient(145deg, 
      rgba(255, 255, 255, 0.07) 0%, 
      rgba(255, 255, 255, 0.03) 100%);
    border: 1.5px solid rgba(66, 211, 146, 0.18);
  }
  
  .dark .VPFeatures .icon {
    background: linear-gradient(135deg, 
      rgba(66, 211, 146, 0.22), 
      rgba(66, 211, 146, 0.12));
    border: 1.5px solid rgba(66, 211, 146, 0.3);
  }
}

/* 微信公众号页面样式 */
.wechat-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 2rem;
}

.wechat-header {
  text-align: center;
  margin-bottom: 3rem;
}

.wechat-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--vp-c-brand-1);
  margin-bottom: 1rem;
}

.wechat-subtitle {
  font-size: 1.2rem;
  color: var(--vp-c-text-2);
}

.wechat-qrcode-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4rem;
}

.wechat-qrcode {
  width: 300px;
  height: 300px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  margin-bottom: 1rem;
}

.wechat-scan-text {
  font-size: 1.2rem;
  color: var(--vp-c-text-1);
  font-weight: 500;
}

/* 公众号介绍区域样式 */
.wechat-page h2 {
  text-align: center;
  margin: 3rem 0 2.5rem;
  font-size: 1.8rem;
  color: var(--vp-c-text-1);
  background: var(--vp-c-bg-soft);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.wechat-page h3 {
  background: var(--vp-c-bg);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--vp-c-brand-1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  color: var(--vp-c-brand-1);
  font-size: 1.3rem;
}

.wechat-page h3:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.wechat-page h3 + p {
  margin: 0 0 2rem 0;
  color: var(--vp-c-text-2);
  font-size: 0.95rem;
  line-height: 1.6;
  padding-left: 1.5rem;
}

@media (max-width: 768px) {
  .wechat-page h2 {
    padding: 1.5rem;
    margin: 2rem 0 2rem;
  }
  
  .wechat-page h3 {
    padding: 1.2rem;
    margin: 1rem 0;
  }
  
  .wechat-qrcode {
    width: 250px;
    height: 250px;
  }
}

/* ========== 优雅的目录显示方案 - 悬浮显示完整标题 ========== */

/* 优化目录容器宽度 - 适中的宽度 */
.VPDocAside {
  width: 320px !important;
  min-width: 320px !important;
  max-width: 320px !important;
  flex-shrink: 0 !important;
}

/* 目录链接样式 - 使用省略号，悬浮时显示完整内容 */
.VPDocAsideOutline .outline-link {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: block !important;
  max-width: 100% !important;
  position: relative !important;
  transition: all 0.3s ease !important;
}

/* 悬浮时显示完整标题 - 使用浮层效果 */
.VPDocAsideOutline .outline-link:hover {
  overflow: visible !important;
  text-overflow: clip !important;
  background: var(--vp-c-bg-soft) !important;
  z-index: 1000 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  padding-right: 12px !important;
  border-radius: 4px !important;
  transform: translateX(-4px) !important;
}

/* 可选方案：使用 title 属性的 tooltip 效果 */
.VPDocAsideOutline .outline-link::after {
  content: attr(title);
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  background: var(--vp-c-bg-elv);
  color: var(--vp-c-text-1);
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  margin-left: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--vp-c-divider);
  font-size: 13px;
  z-index: 2000;
  max-width: 500px;
}

.VPDocAsideOutline .outline-link:hover::after {
  opacity: 1;
}

/* 嵌套链接也应用相同效果 */
.VPDocAsideOutline .outline-link.nested {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.VPDocAsideOutline .outline-link.nested:hover {
  overflow: visible !important;
  text-overflow: clip !important;
  background: var(--vp-c-bg-soft) !important;
  z-index: 1000 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  padding-right: 12px !important;
  border-radius: 4px !important;
}

/* 在较大屏幕上增加目录宽度 */
@media (min-width: 1440px) {
  .VPDocAside {
    width: 380px !important;
    min-width: 380px !important;
    max-width: 380px !important;
  }
}

@media (min-width: 1680px) {
  .VPDocAside {
    width: 420px !important;
    min-width: 420px !important;
    max-width: 420px !important;
  }
}

@media (min-width: 1920px) {
  .VPDocAside {
    width: 480px !important;
    min-width: 480px !important;
    max-width: 480px !important;
  }
}

@media (min-width: 2560px) {
  .VPDocAside {
    width: 550px !important;
    min-width: 550px !important;
    max-width: 550px !important;
  }
}



/* ========== 统计组件样式 ========== */

/* 全站访问量组件容器 */
#site-visits-container {
  display: inline-block;
  vertical-align: middle;
}

/* 文章统计组件页面集成 */
.vp-doc .article-stats {
  margin: 32px 0;
}

/* 页脚中的访问量统计 */
.VPFooter .site-visits {
  margin: 0;
  font-size: 12px;
  padding: 4px 12px;
}

/* 移动端优化 */
@media (max-width: 768px) {
  #site-visits-container {
    display: block;
    margin-top: 8px;
  }

  .VPFooter .site-visits {
    font-size: 11px;
    padding: 3px 10px;
  }
}

/* ========== 更新通知组件样式 ========== */

.update-notification {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 9999;
  max-width: 420px;
  animation: update-bounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes update-bounce {
  0% {
    transform: translateY(-100px) scale(0.8);
    opacity: 0;
  }
  50% {
    transform: translateY(10px) scale(1.05);
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.update-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px 24px;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4),
              0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.update-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: update-rotate 2s linear infinite;
}

@keyframes update-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.update-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.update-text {
  flex: 1;
  min-width: 0;
}

.update-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.update-desc {
  font-size: 13px;
  opacity: 0.95;
  line-height: 1.5;
}

.update-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.update-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.update-btn-primary {
  background: white;
  color: #667eea;
}

.update-btn-primary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.update-btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.update-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.update-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
}

.update-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.update-close svg {
  width: 16px;
  height: 16px;
  color: white;
}

/* 过渡动画 */
.update-slide-enter-active {
  animation: update-bounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.update-slide-leave-active {
  animation: update-slide-out 0.4s ease-out;
}

@keyframes update-slide-out {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-50px) scale(0.9);
    opacity: 0;
  }
}

/* 暗色模式适配 */
.dark .update-content {
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3),
              0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .update-notification {
    top: 60px;
    right: 16px;
    left: 16px;
    max-width: none;
  }

  .update-content {
    padding: 16px 18px;
    flex-direction: column;
    gap: 12px;
  }

  .update-icon {
    width: 36px;
    height: 36px;
  }

  .update-icon svg {
    width: 20px;
    height: 20px;
  }

  .update-title {
    font-size: 15px;
  }

  .update-desc {
    font-size: 12px;
  }

  .update-actions {
    margin-top: 12px;
    padding-top: 12px;
  }

  .update-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* 小屏幕优化 */
@media (max-width: 480px) {
  .update-notification {
    top: 56px;
    right: 12px;
    left: 12px;
  }

  .update-content {
    padding: 14px 16px;
  }

  .update-actions {
    flex-direction: column;
  }

  .update-btn {
    width: 100%;
  }
}
